import hkust.lingx.csit5110.android.lib.server.NumbServer;
import android.os.Handler;
import android.os.Message;


public class MainServer {

  /**
   * @param args
   */
  public static void main(String[] args) {
    
    NumbServer server=new NumbServer(5000);
    server.registerHandler(new  Handler(){
      @Override
      public void handleMessage(Message msg) {
        Object o=msg.obj;
         System.out.println("receive clien msg:"+o.toString());
         return ;
      }      
    });
    Thread serverThread=new Thread(server)  ;
    serverThread.start();
  }

}
